package com.jiunuan.live.im.provider.rpc;

import com.jiunuan.live.im.interfaces.ImOnlineRpc;
import com.jiunuan.live.im.provider.service.ImOnlineService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @Author: JiuNuan
 * @CreateTime: 2024-08-17 10:26
 * @Description:
 */
@DubboService
public class ImOnlineRpcImpl implements ImOnlineRpc {
    @Resource
    private ImOnlineService imOnlineService;
    /**
     * 判断用户是否在线
     *
     * @param userId
     * @param appId
     * @return
     */
    @Override
    public boolean isOnline(Long userId, Integer appId) {
        return imOnlineService.isOnline(userId, appId);
    }
}
